package com.twu.biblioteca.menu;

import com.twu.biblioteca.BibliotecaApp;
import com.twu.biblioteca.model.User;

import javax.jws.soap.SOAPBinding;

/**
 * @author Aaron Edwards
 * @since 24/09/13
 *        Menu item to quit the application
 */
public class QuitMenuItem implements IMenuItem {


    @Override
    public String getMenuTitleForUser(User currentUser) {
        return "Quit";
    }

    @Override
    public void doAction(BibliotecaApp bibliotecaApp) {
        bibliotecaApp.getOutputStream().println("Goodbye");
    }
}
